﻿@model IPagedList<Infinity.BusinessLayer.grouptypeViewModel>
@using PagedList;
@using PagedList.Mvc;
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}


<section class="course-form">
    <h2> <strong>Group type</strong></h2>
    
        <p>
            @Html.ActionLink("Create new Group Type", "Newgrouptype", null, new { @class = "send" })

        </p>
     <br />
    @using (Html.BeginForm("Index", "GroupType", FormMethod.Post))
    {
        <b>Seaech By:</b> @Html.RadioButton("searchBy", "name", true) <text>Group Type Name</text>
        <br />
        @Html.TextBox("searchfor") <input type="submit" value="Search" />
    }

        <div id="grouptypeContainer">
    @{ Html.RenderPartial("_grouptypeList", Model);}

    </div>
</section>
<div style="height:300px"></div>
